package com.example.testrest;

import java.io.IOException;
import java.util.Vector;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

import restlet.interfaces.TripPartResourceI;
import beans.TripPartBean;

public class TestTripPart {
	public static void main(String[] args) throws ResourceException,
			IOException {

		ClientResource cr = new ClientResource(
				"http://localhost:8080/rest/tripParts");
		TripPartResourceI tripPartsResourceI = cr.wrap(TripPartResourceI.class);
		Vector<TripPartBean> alltripParts = tripPartsResourceI.allTripParts();

		for (TripPartBean tripPart : alltripParts) {
			System.out.println(tripPart);
		}

	}
}
